package com.android.appnextwo;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.*;
import android.view.*;
import android.view.View.OnClickListener;



public class ProjetoDois extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
	
	
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
    	
        
        Button btzip = (Button) findViewById(R.botao.btzip);
        btzip.setOnClickListener(this);        

    }

	@Override
	public void onClick(View arg0) {
		EditText et = (EditText) findViewById(R.campo.texto);
		Intent it = new Intent (this, Tela2.class);
    	it.putExtra("msg", et.getText().toString());
    	startActivity(it);	

		
	}
}